package com.gdwhomework.chapter08.work001;

/**
 * @author 关道伟
 * @version 1.0
 */
public class Frock {
    private static int currentNum = 100000;//出场起始序列号
    private int serialNumber;//序列号

    public Frock() {
        this.serialNumber = getNextNum();
    }

    public static int getCurrentNum() {
        return currentNum;
    }

    public int getSerialNumber() {
        return serialNumber;
    }

    public static int getNextNum() {
        currentNum+=100;
        return currentNum;
    }

    public static void main(String[] args) {
        getNextNum();
        System.out.println(getCurrentNum());
        getNextNum();
        System.out.println(getCurrentNum());
    }
}
